package com.atguigu.yygh.hosp.service;

import com.atguigu.yygh.model.hosp.Schedule;
import com.atguigu.yygh.vo.hosp.ScheduleOrderVo;
import com.atguigu.yygh.vo.hosp.ScheduleQueryVo;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Map;

public interface ScheduleService{
    //根据医院编号，科室编号，日期查询排班数据
    List<Schedule> getDetailSchedule(String hoscode, String depcode, String workDate);
    //根据医院编号，科室编号，查询排班规则数据

    Map<String, Object> getRuleSchedule(long page, long limit, String hoscode, String depcode);
    //上传排班接口

    void save(Map<String, Object> paramMap);
    //查询排版，包含分页

    Page<Schedule> findPageSchedule(int page, int limit, ScheduleQueryVo scheduleQueryVo);
    //删除排班编号

    void remove(String hoscode, String hosScheduleId);

    //获取可预约的排班数据
    Map<String, Object> getBookingScheduleRule(Integer page, Integer limit, String hoscode, String depcode);

    //根据排班的id获取排班的数据
    Schedule getSchedlueId(String scheduleId);

    //根据排班id获取预约下单数据
    ScheduleOrderVo getScheduleOrderVo(String scheduleId);
}
